package com.xyh.transaction.entity.vo;

import com.xyh.transaction.entity.Goods;
import com.xyh.transaction.entity.GoodsEvaluation;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Collection;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class GoodsVo extends Goods implements Serializable {



    public GoodsVo(Integer id, String name, String desc, BigDecimal price, String picture) {
        super(id, name, desc, price);
        this.picture = picture;
    }

    private String categoryName;

    private String picture; // 封面

    private Collection<ImageVo> pictures;

    private Integer orderNum;

    private Long goodsNum; // 结算时商品数量

    private BigDecimal totalPrice; // 结算时总价格

    private BigDecimal totalPayPrice; // 结算时实付价格

    private String sellerName; // 卖家名字

    private String conditionName; // 成色

    private List<GoodsEvaluation> evaluations; // 评价信息

}
